﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_SignUpStudentsResume 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_SignUpStudentsResume : Entity 
	{
		public TB_SignUpStudentsResume():base("TB_SignUpStudentsResume") {}

		#region Model
		private string _ID;
		private string _SignUpStudentsID;
		private string _BeginYear;
		private string _BeginMonth;
		private string _EndYear;
		private string _EndMonth;
		private string _WorkOrStudyPlace;
		/// <summary>
		/// 
		/// </summary>
		public string ID
		{
			get{ return _ID; }
			set
			{
				this.OnPropertyValueChange(_.ID,_ID,value);
				this._ID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string SignUpStudentsID
		{
			get{ return _SignUpStudentsID; }
			set
			{
				this.OnPropertyValueChange(_.SignUpStudentsID,_SignUpStudentsID,value);
				this._SignUpStudentsID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string BeginYear
		{
			get{ return _BeginYear; }
			set
			{
				this.OnPropertyValueChange(_.BeginYear,_BeginYear,value);
				this._BeginYear=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string BeginMonth
		{
			get{ return _BeginMonth; }
			set
			{
				this.OnPropertyValueChange(_.BeginMonth,_BeginMonth,value);
				this._BeginMonth=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string EndYear
		{
			get{ return _EndYear; }
			set
			{
				this.OnPropertyValueChange(_.EndYear,_EndYear,value);
				this._EndYear=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string EndMonth
		{
			get{ return _EndMonth; }
			set
			{
				this.OnPropertyValueChange(_.EndMonth,_EndMonth,value);
				this._EndMonth=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string WorkOrStudyPlace
		{
			get{ return _WorkOrStudyPlace; }
			set
			{
				this.OnPropertyValueChange(_.WorkOrStudyPlace,_WorkOrStudyPlace,value);
				this._WorkOrStudyPlace=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ID};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ID,
				_.SignUpStudentsID,
				_.BeginYear,
				_.BeginMonth,
				_.EndYear,
				_.EndMonth,
				_.WorkOrStudyPlace};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ID,
				this._SignUpStudentsID,
				this._BeginYear,
				this._BeginMonth,
				this._EndYear,
				this._EndMonth,
				this._WorkOrStudyPlace};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ID = DataUtils.ConvertValue<string>(reader["ID"]);
			this._SignUpStudentsID = DataUtils.ConvertValue<string>(reader["SignUpStudentsID"]);
			this._BeginYear = DataUtils.ConvertValue<string>(reader["BeginYear"]);
			this._BeginMonth = DataUtils.ConvertValue<string>(reader["BeginMonth"]);
			this._EndYear = DataUtils.ConvertValue<string>(reader["EndYear"]);
			this._EndMonth = DataUtils.ConvertValue<string>(reader["EndMonth"]);
			this._WorkOrStudyPlace = DataUtils.ConvertValue<string>(reader["WorkOrStudyPlace"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ID = DataUtils.ConvertValue<string>(row["ID"]);
			this._SignUpStudentsID = DataUtils.ConvertValue<string>(row["SignUpStudentsID"]);
			this._BeginYear = DataUtils.ConvertValue<string>(row["BeginYear"]);
			this._BeginMonth = DataUtils.ConvertValue<string>(row["BeginMonth"]);
			this._EndYear = DataUtils.ConvertValue<string>(row["EndYear"]);
			this._EndMonth = DataUtils.ConvertValue<string>(row["EndMonth"]);
			this._WorkOrStudyPlace = DataUtils.ConvertValue<string>(row["WorkOrStudyPlace"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_SignUpStudentsResume");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ID = new Field("ID","TB_SignUpStudentsResume","ID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SignUpStudentsID = new Field("SignUpStudentsID","TB_SignUpStudentsResume","SignUpStudentsID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field BeginYear = new Field("BeginYear","TB_SignUpStudentsResume","BeginYear");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field BeginMonth = new Field("BeginMonth","TB_SignUpStudentsResume","BeginMonth");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field EndYear = new Field("EndYear","TB_SignUpStudentsResume","EndYear");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field EndMonth = new Field("EndMonth","TB_SignUpStudentsResume","EndMonth");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field WorkOrStudyPlace = new Field("WorkOrStudyPlace","TB_SignUpStudentsResume","WorkOrStudyPlace");
		}
		#endregion


	}
}

